package com.neusoft.bd.myspark.spark01.action

import org.apache.spark.rdd.RDD
import org.apache.spark.{SparkConf, SparkContext}

object M01Action {

  //
  def main(args: Array[String]): Unit = {
    val conf: SparkConf = new SparkConf().setMaster("local[*]").setAppName("Operator")
    val sc: SparkContext = new SparkContext(conf)
    sc.makeRDD(
      List(1,2,3,4)
    ).collect()

    sc.stop();
  }
}
